//
//  DSSHphotoS.m
//  DSSH
//
//  Created by Fuhao on 16/4/12.
//  Copyright © 2016年 lcy. All rights reserved.
//

#import "DSSHphotoS.h"
#define KEYWINDOW [UIApplication sharedApplication].keyWindow

@implementation DSSHphotoS




+(instancetype)initWithXib{
    return [[NSBundle mainBundle] loadNibNamed:@"DSSHphotoS" owner:nil options:nil][0];
}
-(void)awakeFromNib{
    UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(presslong:)];
    longPress.minimumPressDuration = 1; //定义按的时间
    _DetailT.layer.borderWidth = 1;
    _DetailT.layer.borderColor = [UIColor colorWithRed:244/255.0 green:244/255.0 blue:244/255.0 alpha:1].CGColor;
    [self addGestureRecognizer:longPress];
    
}
-(IBAction)presslong:(UIButton *)button
{
    DSSHLog(@"长按");
    [self.SelectFlag setSelected:YES];
    if([self.delegate respondsToSelector:@selector(imagebuttonpresslong:)]){
        [self.delegate imagebuttonpresslong:self];
    }
    
    
}
@end
